package com.xuecheng.api.order;

import com.xuecheng.api.order.model.dto.OrdersDTO;
import com.xuecheng.api.order.model.vo.QueryOrderModel;
import com.xuecheng.common.domain.page.PageRequestParams;
import com.xuecheng.common.domain.page.PageVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

import java.util.Map;

@Api("订单服务API, 订单生成、查看、取消、删除\", tags = \"11..订单管理")
public interface OrderApi {

    @ApiOperation("根据课程发布ID生成课程支付订单")
    OrdersDTO createOrModifyOrder(Long coursePubId);

    @ApiOperation("刷新订单支付结果")
    Map refreshPayResult(String orderNo);

    @ApiOperation("分页查询我的订单")
    PageVO<OrdersDTO> queryOrderList(PageRequestParams params, QueryOrderModel model);

}
